package com.corx.network.mysqlstorage.repository;


import com.corx.network.mysqlstorage.common.PageQuery;
import com.corx.network.mysqlstorage.common.PageResult;
import com.corx.network.mysqlstorage.model.DeviceModel;

import java.util.Optional;

/**
 * @author gx
 * @version 1.0.0
 */
public interface DeviceModelRepository {

    void save(DeviceModel model);

    void update(DeviceModel model);

    void delete(Long id);

    Optional<DeviceModel> findById(Long id);

    PageResult<DeviceModel> findByPage(DeviceModel model, PageQuery pageQuery);


}
